package com.sree.tali.buscomp;

import com.sree.tali.common.CommonUtils;
import com.sree.tali.dao.homepage.impl.IUploadHomeDao;
import com.sree.tali.dao.homepage.impl.UploadHomeDAO;
import com.sree.tali.pojo.AdminHomepojo;
import org.apache.struts.upload.FormFile;
import org.hibernate.Session;

public class AdminBusCompImpl
  implements AdminBusComp
{
  IUploadHomeDao uploadDao = new UploadHomeDAO();
  
  public void UploadHomeAction(AdminHomepojo paramAdminHomepojo, Session paramSession)
  {
    String str1 = paramAdminHomepojo.getFilPath();
    FormFile localFormFile = paramAdminHomepojo.getImage();
    CommonUtils localCommonUtils = new CommonUtils();
    String str2 = paramAdminHomepojo.getUploadType().toUpperCase() + "/" + paramAdminHomepojo.getFolderName() + "/" + localFormFile.getFileName();
    paramAdminHomepojo.setFilPath(str2);
    this.uploadDao.save(paramAdminHomepojo, paramSession);
    localCommonUtils.UploadFile(localFormFile, str1);
  }
}


/* Location:           D:\sreenu\talivud-new-110514\talivud-new\dist\WEB-INF\classes\
 * Qualified Name:     com.sree.tali.buscomp.AdminBusCompImpl
 * JD-Core Version:    0.7.0.1
 */